package Stream.终端操作;

import java.util.stream.Stream;

public class Search_Match {
    public static void main(String[] args) {
        Stream<Integer> integerStream = Stream.of(-1, 1, 2, 3);
        //匹配方法,这个是有任意一个小于0就返回true
        //对应的还有其他两个
        boolean b = integerStream.anyMatch(num -> num < 0);
        System.out.println(b);
    }
}
